<?php

use Drupal\shusy_cash_wx\Entity\ShusyCashWx;

function shusy_cash_wx_shusy_cash_wx_add_page() {
  $e = new ShusyCashWx();
  module_load_include('inc', 'shusy_cash_wx', 'shusy_cash_wx.forms');
  return drupal_get_form('shusy_cash_wx_shusy_cash_wx_entity_form', $e, 'add');
}

function shusy_cash_wx_shusy_cash_wx_view_page(ShusyCashWx $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_cash_wx_shusy_cash_wx_edit_page(ShusyCashWx $e) {
  module_load_include('inc', 'shusy_cash_wx', 'shusy_cash_wx.forms');
  return drupal_get_form('shusy_cash_wx_shusy_cash_wx_entity_form', $e, 'edit');
}

function shusy_cash_wx_shusy_cash_wx_delete_page(ShusyCashWx $e) {
  module_load_include('inc', 'shusy_cash_wx', 'shusy_cash_wx.forms');
  return drupal_get_form('shusy_cash_wx_shusy_cash_wx_delete_form', $e);
}

